﻿
<%@ Page Language="C#" MasterPageFile="~/Design/MasterPage/MasterPage.master" AutoEventWireup="true" CodeFile="EmployInterviewPop.aspx.cs" Inherits="App_Input_EmployInterviewPop" Title="招聘申请" EnableEventValidation="false"%>

<%@ Register Assembly="ShpmCommon" Namespace="Shpm.System.Web.Control" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

    <script type="text/jscript">
    function selectEmployee(id)
    {

     var obj = opener.window.document.getElementById('<%=Request.QueryString["ID"]%>');

     if(obj!=null)
     {
        obj.value=id;

        window.close();
     }
    }
    
    function jobIdChange(object)
    {
     CommonAjaxUtils.FindPositions(object.value,get_jobId_Result_CallBack);

    }
    
     function get_jobId_Result_CallBack(response)
    {
        if (response.value != null)
        {                    

            var drop = window.document.getElementById('<%=applyEmploy.ClientID %>');
            drop.length=0;　　　　            
            var ds = response.value;
            if(ds != null && typeof(ds) == "object")
            {                   
　　                drop.options.add(new Option("",""));
                for(var i=0; i<ds.length; i++)
                {
       
　　                var name=ds[i].JobName;
　　                var id=ds[i].JobId;
　　                drop.options.add(new Option(name,id));
                }                
            }
        }
        return
    }
    </script>
    <table width="100%">
        <tr>
            <td style="height: 125px">
                <table style="width: 100%" class="table_border_line">
                    <tr>
                        <td colspan="7" style="height: 25px">
                            <script language="javascript">
                                (new TitleBar('SearchBar', '检索条件')).showBar();
                            </script>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="7" style="height: 25px">
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 170px; height: 25px">
                        </td>
                        <td style="width: 82px; height: 25px">
                            <asp:Label ID="Label1" runat="server" Text="申请部门："></asp:Label>
                        </td>
                        <td style="width: 130px; height: 25px">
                            <asp:DropDownList ID="applyPart" runat="server" DataTextField="departName" DataValueField="departId" onchange="jobIdChange(this)">
                            </asp:DropDownList>
                        </td>
                        <td style="width: 75px; height: 25px">
                            <asp:Label ID="Label2" runat="server" Text="申请岗位：" ></asp:Label>
                        </td>
                        <td style="width: 148px; height: 25px">
                            <asp:DropDownList ID="applyEmploy" runat="server" DataTextField="JobName" DataValueField="JobId" >
                            </asp:DropDownList>
                        </td>
                        <td style="width: 68px; height: 25px;">
                            <asp:Label ID="Label3" runat="server" Text="申请日期："></asp:Label>&nbsp;
                        </td>
                        <td style="width: 297px; height: 25px">
                        <asp:TextBox ID="txtSendDate" runat="server" onfocus="new Calendar().show(this);"
                            Width="105px"></asp:TextBox>～
                            <asp:TextBox ID="txtSendDateTo" runat="server" onfocus="new Calendar().show(this);"
                            Width="105px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="7" style="height: 25px">
                        </td>
                    </tr>
                    <tr>
                        <td colspan="7" style="height: 25px" align="center">
                            <asp:Button ID="btnSearch" runat="server" Text=" 检 索 " CssClass="button" Width="80px" OnClick="btnSearch_Click" />
                            &nbsp;&nbsp;
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td align="left">

                <script language="javascript">
                                    (new TitleBar('SearchBar', '检索结果')).showBar();
                </script>

            </td>
        </tr>
        <tr>
            <td style="height: 216px">
            <asp:GridView ID="applyInfo" runat="server" AllowPaging="True" AutoGenerateColumns="False" CssClass="GridView_table"
             BorderStyle="Solid" BorderWidth="3px" DataKeyNames="InviteId" OnPageIndexChanging="viewSrhRst_PageIndexChanging" OnRowDataBound="applyInfo_RowDataBound">
             <PagerSettings Mode="NumericFirstLast" />
             <PagerStyle HorizontalAlign="Right" />
                <Columns>
                    <asp:TemplateField HeaderText="选择" ShowHeader="False">
                        <ItemStyle CssClass="GridView_item_center" HorizontalAlign="Center" VerticalAlign="Middle" />
                        <HeaderStyle CssClass="GridView_head_grayblue" />
                        <ItemTemplate>
                            <asp:ImageButton ID="selectImg" runat="server" CausesValidation="False" CommandName="Select"
                                ImageUrl="~/images/info.gif" Text="Select" />
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField HeaderText="申请编号" DataField="InviteId">
                        <ItemStyle CssClass="GridView_item_center" />
                        <HeaderStyle CssClass="GridView_head_grayblue" />
                    </asp:BoundField>
                    <asp:BoundField HeaderText="申请部门" DataField="DepartName">
                        <ItemStyle CssClass="GridView_item_center" />
                        <HeaderStyle CssClass="GridView_head_grayblue" />
                    </asp:BoundField>
                    <asp:BoundField HeaderText="申请岗位" DataField="JobName">
                        <ItemStyle CssClass="GridView_item_center" />
                        <HeaderStyle CssClass="GridView_head_grayblue" />
                    </asp:BoundField>
                    <asp:BoundField HeaderText="需求人数"  DataField="InviteQuantity">
                        <ItemStyle CssClass="GridView_item_center" />
                        <HeaderStyle CssClass="GridView_head_grayblue" />
                    </asp:BoundField>
                    <asp:BoundField HeaderText="申请人" DataField="EmployeeName">
                        <ItemStyle CssClass="GridView_item_center" />
                        <HeaderStyle CssClass="GridView_head_grayblue" />
                    </asp:BoundField>
                    <asp:BoundField HeaderText="申请日期" DataField="ApplyDate" DataFormatString="{0:yyyy/MM/dd}" HtmlEncode="False">
                        <ItemStyle CssClass="GridView_item_center" />
                        <HeaderStyle CssClass="GridView_head_grayblue" />
                    </asp:BoundField>
                    
                </Columns>
            </asp:GridView>
            </td>
            </tr>
            </table>
</asp:Content>

